package top.maof.book.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import top.maof.book.model.Forward;

@Mapper
public interface ForwardMapper extends BaseMapper<Forward> {

    @Select("select count(id) from forward where book_id = #{bookId}")
    Integer forwardNum(@Param("bookId") Integer bookId);

}
